﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=400,target-densitydpi=device-dpi,maximum-scale=1.0, user-scalable=no">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="yes" name="apple-touch-fullscreen">
    <meta content="telephone=no,email=no" name="format-detection">
    <link rel="stylesheet" href="js/layui/css/layui.css"  media="all">
    <link rel="stylesheet" href="css/index.css"  media="all">
    <script src="js/layui/layui.js" charset="utf-8"></script>
    <script src="http://libs.baidu.com/jquery/1.8.3/jquery.min.js"></script>
    <script type="text/javascript" src="js/index.js?flag=1"></script>
    <title></title>
</head>
<body>
<H1 style="text-align: center;margin: 20px auto;font-size: 20px;">评委打分</H1>

<form class="layui-form" action="" style="width:360px;" target="nm_iframe">
<div class="layui-form-item">
    <label class="layui-form-label">邀请码</label>
    <div class="layui-input-block">
      <input type="text" id="yqm" name="yaoqingma" required  lay-verify="required" placeholder="请输入邀请码" autocomplete="off" class="layui-input">
    </div>
</div>
  <div class="layui-form-item">
    <label class="layui-form-label">打分对象</label>
    <div class="layui-input-block">
      <select name="obj" lay-verify="required">
        <option value=""></option>
        <option value="9">李姣</option>
        <option value="10">杨银辉</option>
        <option value="11">苏绍春</option>
        <option value="12">杜妮妮</option>
        <option value="13">张莉</option>
        <option value="14">卢星辰</option>
        <option value="15">张竞文</option>
        <option value="16">聂娅</option>
      </select>
    </div>
  </div>

  <div class="pingfen">
  <div class="layui-form-item">
    <label class="layui-form-label">总体设计</label>
    <div class="layui-input-block jiaoxue">
      <select name="jiaoxue" lay-verify="required">
        <option value=""></option>
      </select>
        <p align="right">最高分：40</p>
    </div>
  </div>
    <div class="layui-form-item">
    <label class="layui-form-label">教学过程</label>
    <div class="layui-input-block neirong">
      <select name="neirong" lay-verify="required">
        <option value=""></option>
      </select>
        <p align="right" >最高分：30</p>
    </div>
  </div>
    <div class="layui-form-item">
    <label class="layui-form-label">教学效果</label>
    <div class="layui-input-block jishu">
      <select name="jishu" lay-verify="required">
        <option value=""></option>
      </select>
        <p align="right">最高分：15</p>
    </div>
  </div>
    <div class="layui-form-item">
    <label class="layui-form-label chuangxin">特色创新</label>
    <div class="layui-input-block chuangxin">
      <select name="chuangxin" lay-verify="required">
        <option value=""></option>
      </select>
        <p align="right">最高分：15</p>
    </div>
  </div>
  </div>

<div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
      <button type="reset"  class="layui-btn layui-btn-primary">重置</button>
    </div>
</div>

</form>
    <iframe id="id_iframe" name="nm_iframe" style="display:none;"></iframe>
<script>
        //Demo
        layui.use('form', function(){
            var form = layui.form();

            //监听提交
            form.on('submit(formDemo)', function (data) {
                var cmd = data.field;
                //layer.msg(cmd);
                $.ajax({
                    url: "request.ashx?flag="+Math.random(),
                    type: "POST",
                    data: cmd,
                    success: function (res) {
                        alert(res);
                    },
                    error: function (e) {
                        layer.alert("发生未知错误："+e.status);
                    }
                });
                return false;
            });
        });
</script>
</body>
</html>
